/**
 * $Id: HungrySingleton.java,v 1.0 2022/6/5 17:51 shidesheng Exp $
 * <p>
 * Copyright 2021 Sinosoft Co.,Ltd. All rights reserved.
 */
package sds.mode.single.lazy;

/**
 * @author shidesheng
 * @version $Id: HungrySingleton.java,v 1.1 2022/6/5 17:51 shidesheng Exp $
 * Created on 2022/6/5 17:51
 */
public class LazySingleton {

	public static LazySingleton lazySingleton = null;

	private LazySingleton(){}

	public synchronized static LazySingleton getInstance() {
		if (lazySingleton == null ) {
			lazySingleton = new LazySingleton();
		}
			return lazySingleton;
	}
}
